var back = document.getElementById("back");
var submit1 = document.getElementById("submit1");
var zhezhao = document.getElementById("zhezhao");
var yu = document.querySelector("#yu");
var jin = document.querySelector("#jin");
back.addEventListener("touchstart", function() {
	window.history.go(-1);
})
submit1.addEventListener("touchstart", function(event) {
	event.stopPropagation();
	this.style.background = "#e8201e";
	if(jin.value == "") {
		jin.placeholder = "请输入提现的金额";
		jin.setAttribute("class", "name2");
	}
	if(Number(jin.value) > Number(yu.placeholder)) {
		jin.value = "";
		jin.placeholder = "提现金额不能大于当前余额";
		jin.setAttribute("class", "name");
	} else if(jin.value != "" && Number(jin.value) <= Number(yu.placeholder)) {
		zhezhao.style.display = "block";
	}
})
submit1.addEventListener("touchend", function(event) {
	this.style.background = "#f23a38";
})

zhezhao.addEventListener("touchstart", function(event) {
	if(event.target.nodeName.toLowerCase() == "center") {
		zhezhao.style.display = "none";
	}
})

//			var aaa = document.getElementById("aaa");
//			aaa.addEventListener("touchstart",function(){
//				alert("nihao");
//			})